<template>
	<view class="content">
		<view class="title">
			子组件B
		</view>
		<view>
			ComA组件传进来的值：
			<text class="intent-text-box">{{result}}</text>
		</view>
		<view style="margin: 10rpx">
			<text>回传值：</text>
			<input type="text" :value="callBackValue" style="color: yellow;" />
			<button @click="sendOutside()" size="mini">回传</button>
		</view>
	</view>
</template>

<script>
	export default {
		name:"comB",
		data() {
			return {
				
			};
		},
		methods: {
			sendOutside() {
				console.warn("----ComB----sendOutside------>"+this.callBackValue);
				this.$emit('callBackFunction',this.callBackValue);
			}
		}
	}
</script>

<style>

</style>